export interface ICreateTableRequestData {
  name: string
  sex: string
  phone: string
  // card: string
  job: string
  team: string | number
  recruit: string
  birth: string
  join: string
  quit: string
  log: string
  image: string
  interview: string // 面试日期
  pact: string
  pactExpire: string
  official: string
  state?: string
  education: string // 学历
}

export interface IUpdateTableRequestData {
  id: string
  name: string
  sex: string
  phone: string
  // card: string
  job: string
  team: string
  recruit: string
  birth: string
  join: string
  quit: string
  log: string
  image: string
  interview: string
  pact: string
  pactExpire: string
  official: string
  education: string
  state: string
}

export interface IGetTableRequestData {
  /** 当前页码 */
  page: number
  /** 查询条数 */
  size: number
  /** 查询参数：用户名 */
  name?: string
  // /** 查询参数：员工岗位 */
  job?: string
  // /** 查询参数：员工团队 */
  team?: string
  // /** 查询参数：招聘人事 */
  recruit?: string
  // 查询状态
  state?: string
  //查询性别
  sex?: string
  //学历
  education?: string
  //是否签订合同
  isPact?: string
  //年龄
  max?: string
  min?: string
}

export interface IGetTableData {
  official(official: any, arg1: string): unknown
  birth: string
  // card: string
  id: string
  image: string
  job: string
  join: string
  log: string
  name: string
  phone: string
  quit: string
  recruit: string
  sex: string
  team: string
  education: string
  state: string
}

export type GetTableResponseData = IApiResponseData<{
  staffList: IGetTableData[]
  total: number
}>
